package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller

public class LoginController {
    @RequestMapping("/login")
    public ModelAndView login(String username,String password,int money){
         ModelAndView modelAndView=new ModelAndView();
         modelAndView.addObject("username",username);
         modelAndView.addObject("password",password);
         modelAndView.addObject("money",money);
         modelAndView.setViewName("/WEB-INF/jsp/success.jsp");
         return modelAndView;
    }
}
